package com.ujoku.request;

import java.util.Arrays;

/**
 * Created by greg.chen on 14-10-20.
 */
public class SearchForm {

    private int cate_id_1;

    private int cate_id_2;

    private String freeText;

    private String country;

    private String grade;

    private Integer wineryId;

    private String ingredient;

    private String order;

    private String keyword;

    private int[] priceRange;

    private boolean recommended;

    private boolean sale;

    private boolean isNew;

    private boolean hot;

    private int pageIndex;

    private int pageSize;

    public boolean isHot() {
        return hot;
    }

    public void setHot(boolean hot) {
        this.hot = hot;
    }

    public boolean isRecommended() {
        return recommended;
    }

    public void setRecommended(boolean recommended) {
        this.recommended = recommended;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public boolean isSale() {
        return sale;
    }

    public void setSale(boolean sale) {
        this.sale = sale;
    }

    public boolean isNew() {
        return isNew;
    }

    public void setNew(boolean isNew) {
        this.isNew = isNew;
    }

    public int[] getPriceRange() {
        return priceRange;
    }

    public void setPriceRange(int[] priceRange) {
        this.priceRange = priceRange;
    }

    public int getCate_id_1() {return cate_id_1; }

    public void setCate_id_1(int cate_id_1) {
        this.cate_id_1 = cate_id_1;
    }

    public int getCate_id_2(){return cate_id_2;}

    public void setCate_id_2(int cate_id_2){this.cate_id_2=cate_id_2;}

    public String getFreeText() {
        return freeText;
    }

    public void setFreeText(String freeText) {
        this.freeText = freeText;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getCountry(){return country;}

    public void setCountry(String country){this.country=country;}

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public Integer getWineryId() {
        return wineryId;
    }

    public void setWineryId(Integer wineryId) {
        this.wineryId = wineryId;
    }

    public String getIngredient() {
        return ingredient;
    }

    public void setIngredient(String ingredient) {
        this.ingredient = ingredient;
    }

    @Override
    public String toString() {
        return "SearchForm{" +
                "cate_id_1=" + cate_id_1 +
                "cate_id_2="+cate_id_2+
                ", freeText='" + freeText + '\'' +
                ", order='" + order + '\'' +
                ", keyword='" + keyword + '\'' +
                ", priceRange=" + Arrays.toString(priceRange) +
                ", sale=" + sale +
                ",new=" + isNew +
                '}';
    }
}
